home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / os2 / pccts.zip / DLGDEF.H < prev    next >
C/C++ Source or Header  |  1992-12-08  |  4KB  |  82 lines

  1. /* dlg2.h
  2.  * Things in scanner produced by dlg that should be visible to the outside
  3.  * world
  4.  *
  5.  * SOFTWARE RIGHTS
  6.  *
  7.  * We reserve no LEGAL rights to the Purdue Compiler Construction Tool
  8.  * Set (PCCTS) -- PCCTS is in the public domain.  An individual or
  9.  * company may do whatever they wish with source code distributed with
  10.  * PCCTS or the code generated by PCCTS, including the incorporation of
  11.  * PCCTS, or its output, into commerical software.
  12.  * 
  13.  * We encourage users to develop software with PCCTS.  However, we do ask
  14.  * that credit is given to us for developing PCCTS.  By "credit",
  15.  * we mean that if you incorporate our source code into one of your
  16.  * programs (commercial product, research project, or otherwise) that you
  17.  * acknowledge this fact somewhere in the documentation, research report,
  18.  * etc...  If you like PCCTS and have developed a nice tool with the
  19.  * output, please mention that you developed it using PCCTS.  In
  20.  * addition, we ask that this header remain intact in our source code.
  21.  * As long as these guidelines are kept, we expect to continue enhancing
  22.  * this system and expect to make other tools available as they are
  23.  * completed.
  24.  *
  25.  * ANTLR 1.06
  26.  * Will Cohen
  27.  * Purdue University
  28.  * 1989-1992
  29.  */
  30.  
  31. #ifdef __STDC__
  32. extern char    *zzlextext;      /* text of most recently matched token */
  33. extern char    *zzbegexpr;    /* beginning of last reg expr recogn. */
  34. extern char    *zzendexpr;    /* beginning of last reg expr recogn. */
  35. extern int    zzbufsize;    /* how long zzlextext is */
  36. extern int    zzbegcol;    /* column that first character of token is in*/
  37. extern int    zzendcol;    /* column that last character of token is in */
  38. extern int    zzline;        /* line current token is on */
  39. extern int    zzchar;        /* character to determine next state */
  40. extern int    zzbufovf;    /* indicates that buffer too small for text */
  41.  
  42. /* functions */
  43. extern void    zzadvance();
  44. extern void    (*zzerr)(char *);/* pointer to error reporting function */
  45. extern void    zzskip();    /* erase zzlextext, look for antoher token */
  46. extern void    zzmore();    /* keep zzlextext, look for another token */
  47. extern void    zzmode(int k);    /* switch to automaton 'k' */
  48. extern void    zzrdstream(FILE *);/* what stream to read from */
  49. extern void    zzclose_stream();/* close the current input stream */
  50. extern void    zzrdfunc(int (*)());/* what function to get char from */
  51. extern void    zzgettok();    /* get next token */
  52. extern void    zzreplchar(char c);/* replace last recognized reg. expr. with
  53.                     a character */
  54. extern void    zzreplstr(char *s);/* replace last recognized reg. expr. with
  55.                     a string */
  56. #else
  57. extern char    *zzlextext;      /* text of most recently matched token */
  58. extern char    *zzbegexpr;    /* beginning of last reg expr recogn. */
  59. extern char    *zzendexpr;    /* beginning of last reg expr recogn. */
  60. extern int    zzbufsize;    /* how long zzlextext is */
  61. extern int    zzbegcol;    /* column that first character of token is in*/
  62. extern int    zzendcol;    /* column that last character of token is in */
  63. extern int    zzline;        /* line current token is on */
  64. extern int    zzchar;        /* character to determine next state */
  65. extern int    zzbufovf;    /* indicates that buffer too small for text */
  66.  
  67. /* functions */
  68. extern void    zzadvance();
  69. extern void    (*zzerr)();    /* pointer to error reporting function */
  70. extern void    zzskip();    /* erase zzlextext, look for antoher token */
  71. extern void    zzmore();    /* keep zzlextext, look for another token */
  72. extern void    zzmode(/*k*/);    /* switch to automaton 'k' */
  73. extern void    zzrdstream();    /* what stream to read from */
  74. extern void    zzclose_stream();/* close the current input stream */
  75. extern void    zzrdfunc();    /* what function to get char from */
  76. extern void    zzgettok();    /* get next token */
  77. extern void    zzreplchar();    /* replace last recognized reg. expr. with
  78.                     a character */
  79. extern void    zzreplstr();    /* replace last recognized reg. expr. with
  80.                     a string */
  81. #endif
  82.